package root.loan;

import java.util.Calendar;
import java.util.GregorianCalendar;


public class CurrentDate {

	protected static CurrentDate loanManager;
	private GregorianCalendar day;
	
	public static CurrentDate getInstance() {
		if (loanManager == null)
			loanManager = new CurrentDate();
		return loanManager;
	}
	
	protected CurrentDate(){
		day = new GregorianCalendar();
	}	
	
	public void addDays(int days){
		this.day.add(Calendar.DATE,days);
	}

	public static void setInstance(CurrentDate lMan) {
		loanManager = lMan;
	}
	
	public GregorianCalendar getActualDate(){
		return day;
	}	
}